﻿using GDGeek;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MrPP.iot.Guide
{
    public abstract class GuidePoint : MonoBehaviour
    {
        public abstract Transform getPoint();
        public abstract bool hasNext();
        public abstract GuidePoint next();
        public void link() {
            if (hasNext()) {
                GuidePoint next = this.next();
                GuideLine line = this.getPoint().gameObject.AskComponent<GuideLine>();
                line.link(next.getPoint());
                next.link();
            }
           
        }
    }
}